Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | import makeAppError from './app-error.js'; |
||
5 | class RateLimitError extends AppError { |
||
6 | /** |
||
7 | * Get the error name |
||
8 | * |
||
9 | * @return {string} |
||
10 | */ |
||
11 | get name() { |
||
12 | 7 | return 'RateLimitError'; |
|
13 | } |
||
14 | |||
15 | /** |
||
16 | * Get the error status |
||
17 | * |
||
18 | * @return {number} |
||
19 | */ |
||
20 | get errorStatus() { |
||
21 | 4 | return 429; |
|
22 | } |
||
23 | } |
||
24 | |||
26 |